# -*- coding: utf-8 -*-
from sqlalchemy import Column,String,Integer,Text,Binary,Boolean,DateTime,Enum,Float,BigInteger
from adminApp.extensions import db
from .base import BaseModel
import uuid


class TimedTasks(BaseModel, db.Model):
    '''定时任务表'''
    task_type = Column(String(512), default="shell")
    name = Column(String(512))
    status = Column(Boolean, default=False)
    command_txt = Column(Text)
    target_machine_ids = Column(Text)
    remark = Column(Text)
    last_run = Column(DateTime)
    exec_time = Column(String(64))  # 每天的执行时间 小时分钟  18:00